#include "FAtypes.h"

FApoint::FApoint()
{
	this->x = 0;
	this->y = 0;
}

FApoint::FApoint(double X, double Y)
{
	this->x = X;
	this->y = Y;
}

void FApoint::SetXY(double X, double Y)
{
	this->x = X;
	this->y = Y;
}

void FApoint::SetX(double X)
{
	this->x;
}

void FApoint::SetY(double Y)
{
	this->y;
}

double FApoint::X()
{
	return this->x;
}

double FApoint::Y()
{
	return this->y;
}

/* FArectangle */

FArectangle::FArectangle()
{
	this->X0Y0.SetXY(0, 0);
	this->X1Y1.SetXY(0, 0);
}

FArectangle::FArectangle(double X0, double Y0, double X1, double Y1)
{
	SetRectangle(X0, Y0, X1, Y1);
}

FArectangle::FArectangle(FApoint XY_00, FApoint XY_11)
{
	SetRectangle(XY_00, XY_11);
}

void FArectangle::SetRectangle(double X0, double Y0, double X1, double Y1)
{
	this->X0Y0.SetXY(X0, Y0);
	this->X1Y1.SetXY(X1, Y1);
}

void FArectangle::SetRectangle(FApoint XY_00, FApoint XY_11)
{
	this->X0Y0.SetXY(XY_00.X(), XY_00.Y());
	this->X1Y1.SetXY(XY_11.X(), XY_11.Y());
}

FApoint FArectangle::GetXY_00()
{
	return X0Y0;
}

FApoint FArectangle::GetXY_11()
{
	return X1Y1;
}